package com.jinzhi.demo.thread.util;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.jinzhi.sys.domain.UserDO;
import com.jinzhi.sys.service.UserService;

import java.util.List;

public class WorkerUtil implements Runnable{

    private UserService userService;

    @Override
    public void run() {
        this.userService =   ApplicationContextUtil.getApplicationContext().getBean(UserService.class);

        Wrapper<UserDO> Userwrapper = new EntityWrapper<UserDO>().orderBy("id", false);
        List<UserDO> list11=   userService.selectList(Userwrapper);
    }

}
